const Layout = () => import("../views/Layout");
const AboutIndex = () => import("../views/About/index");
const Contact = () => import("../views/About/contact");
const AboutAdd = () => import("../views/About/add");
const AboutEdit = () => import("../views/About/editor");
const aboutRouter = {
  path: "/about",
  component: Layout,
  meta: {
    title: "about",
    icon: "UserOutlined",
  },
  children: [
    {
      path: "index",
      component: AboutIndex,
      name: "aboutIndex",
      meta: {
        title: "aboutIndex",
        icon: "MailOutlined",
      },
    },
    {
      path: "contact",
      component: Contact,
      name: "contact",
      meta: {
        title: "contact",
        icon: "PayCircleOutlined",
      },
    },
    {
      path: "add",
      component: AboutAdd,
      name: "aboutAdd",
      hidden: true,
      meta: {
        title: "aboutAdd",
        isKeepAlive: true,
        comName: "AboutAdd",
      },
    },
    {
      path: "edit",
      component: AboutEdit,
      name: "aboutEdit",
      hidden: true,
      meta: {
        title: "aboutEdit",
      },
    },
  ],
};
export default aboutRouter;
